/* ===== RANDOM FACTS (MODERN CARD STYLE + SCROLL ANIMATION) ===== */
.random-facts {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: center;
}

/* IMAGE STYLE */
.random-facts img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.8s ease, filter 1s ease, opacity 1s ease;
}

/* TEXT */
.random-facts-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0f172a;
    transition: all 0.8s ease;
}

/* LIST */
.random-facts-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    margin: 0;
}

/* CARD ITEMS */
.random-facts-content ul li {
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    border: 1px solid rgba(11, 94, 215, 0.08);
    box-shadow: 0 8px 18px rgba(11, 94, 215, 0.05);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        background 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* HOVER EFFECT */
.random-facts-content ul li:hover {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.22);
}

/* ===== INITIAL ANIMATION STATE ===== */
.random-facts img {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: brightness(0.45);
}

.random-facts-content h2 {
    opacity: 0;
    transform: translateY(35px);
}

.random-facts-content ul li {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* ===== ACTIVE / SHOW STATE ===== */
.random-facts.show img {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
}

.random-facts.show .random-facts-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.random-facts.show .random-facts-content ul li {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* STAGGER EFFECT */
.random-facts.show .random-facts-content ul li:nth-child(1)  { transition-delay: 0.10s; }
.random-facts.show .random-facts-content ul li:nth-child(2)  { transition-delay: 0.16s; }
.random-facts.show .random-facts-content ul li:nth-child(3)  { transition-delay: 0.22s; }
.random-facts.show .random-facts-content ul li:nth-child(4)  { transition-delay: 0.28s; }
.random-facts.show .random-facts-content ul li:nth-child(5)  { transition-delay: 0.34s; }
.random-facts.show .random-facts-content ul li:nth-child(6)  { transition-delay: 0.40s; }
.random-facts.show .random-facts-content ul li:nth-child(7)  { transition-delay: 0.46s; }
.random-facts.show .random-facts-content ul li:nth-child(8)  { transition-delay: 0.52s; }
.random-facts.show .random-facts-content ul li:nth-child(9)  { transition-delay: 0.58s; }
.random-facts.show .random-facts-content ul li:nth-child(10) { transition-delay: 0.64s; }
.random-facts.show .random-facts-content ul li:nth-child(11) { transition-delay: 0.70s; }

/* MOBILE */
@media (max-width: 768px) {
    .random-facts {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .random-facts-content ul {
        grid-template-columns: 1fr;
    }
}
